package cn.bdqn.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 物流信息表
 * @author dkj
 */
public class Transport implements Serializable {

    /**
     * id
     */
    private Integer id;

    /**
     * 发货单对象
     */
    private SendFreight sendFreight;

    /**
     * 物流消息
     */
    private String message;

    /**
     * 创建时间
     */
    private Date createTime;


    /**
     * 1.完成  2.配送中
     */
    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public SendFreight getSendFreight() {
        return sendFreight;
    }

    public void setSendFreight(SendFreight sendFreight) {
        this.sendFreight = sendFreight;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Transport{" +
                "id=" + id +
                ", sendFreight=" + sendFreight +
                ", message='" + message + '\'' +
                ", createTime=" + createTime +
                ", state=" + state +
                '}';
    }
}
